<template>
	<view class="content" style="background-color: #fff;">
		<!-- <u-navbar height="160rpx" scrollable=false titleStyle="font-size:40rpx;color:#333" leftText="消息中心(30)" title="消息"
			>
		</u-navbar> -->
		<u-navbar :placeholder='true' leftText="返回" :safeAreaInsetTop="true" height="160rpx">
			<view class="u-nav-slot" slot="left" style="height: 80rpx; font-size: 40rpx;color: #333333;">
				<text>消息中心(30)</text>
				<image src="../../static/images/mess/trash.png"
					style="width: 48rpx; height: 48rpx;margin-left: 10rpx;margin-top: 10rpx;" mode=""></image>
			</view>
			<view class="u-nav-slot" slot="right" style="font-size: 40rpx;color: #333333;line-height: 40rpx;">
				<image src="../../static/images/mess/search.png" style="width: 48rpx; height: 48rpx;" mode="">
				</image>
				<image src="../../static/images/mess/user.png"
					style="width: 48rpx; height: 48rpx;margin-left: 40rpx;" mode=""></image>
			</view>
		</u-navbar>
		<view class="type">
			<button @click="toge" :class="active==true?'active':''">消息</button>
			<button @click="toge" :class="active==false?'active':''">系统消息</button>
		</view>
		<view class="list">
			<view class="li" @click="$my.go('/pages/mess/dialog')" @longpress="longpress($event)">
				<view class="left">
					
				</view>
				<view class="right">
					<view class="inner fontS28">
						<view class="left fontS28">
							SEKIKON株式会社
						</view>
						<view class="right fontS24 co9">
							15:42
						</view>

					</view>
					<view class="inner_ fontS24 co9" style="margin-top: 20rpx;">
						通过设立海外办事处，只需直接进口，无需中注册...
					</view>
				</view>
			</view>
			<view class="li">
				<view class="left">

				</view>
				<view class="right">
					<view class="inner fontS28">
						<view class="left fontS28">
							SEKIKON株式会社
						</view>
						<view class="right fontS24 co9">
							15:42
						</view>

					</view>
					<view class="inner_ fontS24 co9" style="margin-top: 20rpx;">
						通过设立海外办事处，只需直接进口，无需中注册...
					</view>
				</view>
			</view>
			<view class="li">
				<view class="left">

				</view>
				<view class="right">
					<view class="inner fontS28">
						<view class="left fontS28">
							SEKIKON株式会社
						</view>
						<view class="right fontS24 co9">
							15:42
						</view>

					</view>
					<view class="inner_ fontS24 co9" style="margin-top: 20rpx;">
						通过设立海外办事处，只需直接进口，无需中注册...
					</view>
				</view>
			</view>

		</view>
	</view>
</template>



<script>
	export default {
		data() {
			return {
				active: true,
			}
		},
		methods: {
			toge() {
				console.log(this.active);
				this.active = !this.active
			},
			longpress(e){
				console.log(e.target);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {

		// border: 2rpx solid #f5f5f5;
		.type {
			display: flex;
			width: 60%;
			// padding-left: 4%;
			padding-bottom: 40rpx;
			button {
				// border-style: none !important;
				line-height: 60rpx;
				font-size: 32rpx;
				width: 180rpx;
				height: 60rpx;
				border-radius: 30rpx;
				background-color: white;
				color: #999999;
			}

			.active {
				background-color: $red;
				color: white;
			}
		}

		.list {
			.li {
				margin: 20rpx 4%;
				height: 180rpx;
				display: flex;
				border-bottom: 4rpx solid #f3f3f3;

				>.left {
					margin-top: 40rpx;
					width: 100rpx;
					height: 100rpx;
					background-color: red;
					border-radius: 50rpx;
					margin-right: 20rpx;
				}

				>.right {
					margin-top: 40rpx;
					width: 400rpx;
					flex-grow: 1;
					height: 100rpx;

					// background-color: tomato;
					.inner {
						display: flex;
						justify-content: space-between;

					}
				}
			}
		
		}

	}
</style>
